package com.qf.courtesyard.domain.vo;

import java.util.HashMap;

/**
 * @author 刘欣
 * @createTime 2023/2/24 17:18
 * @description vo
 */
public class ResultVo extends HashMap {


    public static ResultVo ok() {
        ResultVo vo = new ResultVo();
        vo.put("code", 1);
        vo.put("msg", "ok");
        return vo;
    }


    public static ResultVo error(String msg) {
        ResultVo vo = new ResultVo();
        vo.put("code", -1);
        vo.put("msg", msg);
        return vo;
    }

}
